.class public Lcom/estrongs/android/pop/app/imageviewer/f;
.super Ljava/lang/Object;
.source "MenuHelper.java"


# static fields
.field private static a:Ljava/lang/String; = "Unknown"


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static a()I
    .locals 2

    .line 68
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/app/imageviewer/ImageManager;->b()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, -0x1

    return v0

    .line 69
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v0

    .line 70
    new-instance v1, Landroid/os/StatFs;

    invoke-direct {v1, v0}, Landroid/os/StatFs;-><init>(Ljava/lang/String;)V

    .line 71
    invoke-virtual {v1}, Landroid/os/StatFs;->getAvailableBlocks()I

    move-result v0

    int-to-float v0, v0

    .line 72
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockSize()I

    move-result v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    int-to-float v1, v1

    mul-float v0, v0, v1

    const v1, 0x48c35000    # 400000.0f

    div-float/2addr v0, v1

    float-to-int v0, v0

    return v0

    :catch_0
    const/4 v0, -0x2

    return v0
.end method

.method public static a(Les/cm;)J
    .locals 2

    .line 2
    invoke-interface {p0}, Les/cm;->d()J

    move-result-wide v0

    return-wide v0
.end method

.method public static a(Landroid/app/Activity;)V
    .locals 1

    .line 62
    invoke-static {}, Lcom/estrongs/android/pop/app/imageviewer/f;->a()I

    move-result v0

    invoke-static {p0, v0}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/app/Activity;I)V

    return-void
.end method

.method public static a(Landroid/app/Activity;I)V
    .locals 2

    const/4 v0, -0x1

    if-ne p1, v0, :cond_1

    .line 63
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object p1

    const v0, 0x7f110726

    const-string v1, "checking"

    if-ne p1, v1, :cond_0

    .line 64
    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 65
    :cond_0
    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_1
    const/4 v0, 0x1

    if-ge p1, v0, :cond_2

    const p1, 0x7f1106c3

    .line 66
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    :cond_2
    const/4 p1, 0x0

    :goto_0
    if-eqz p1, :cond_3

    const/16 v0, 0x1388

    .line 67
    invoke-static {p0, p1, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    :cond_3
    return-void
.end method

.method public static a(Landroid/app/Activity;Landroid/net/Uri;Les/cm;)V
    .locals 0

    if-eqz p1, :cond_1

    if-nez p2, :cond_0

    goto :goto_0

    .line 42
    :cond_0
    invoke-static {p2}, Lcom/estrongs/android/pop/app/imageviewer/i;->a(Les/cm;)Landroid/content/Intent;

    move-result-object p1

    .line 43
    const-class p2, Lcom/estrongs/android/pop/app/imageviewer/Wallpaper;

    invoke-virtual {p1, p0, p2}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 44
    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    :cond_1
    :goto_0
    return-void
.end method

.method public static a(Landroid/app/Activity;Landroid/net/Uri;Les/cm;Landroid/os/Handler;)V
    .locals 9

    if-nez p2, :cond_0

    return-void

    .line 17
    :cond_0
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 18
    invoke-static {p0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    const v2, 0x7f0c01b7

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 19
    invoke-virtual {p1}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->i2(Ljava/lang/String;)Z

    move-result p1

    .line 20
    invoke-virtual {p0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v2, 0x7f1101d4

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    sput-object p1, Lcom/estrongs/android/pop/app/imageviewer/f;->a:Ljava/lang/String;

    const p1, 0x7f0902c2

    .line 21
    invoke-virtual {v1, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 22
    invoke-interface {p2}, Les/cm;->e()Landroid/graphics/Bitmap;

    move-result-object v2

    invoke-virtual {p1, v2}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 23
    invoke-virtual {p0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v2, 0x7f1108ec

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 24
    instance-of v2, p2, Les/am;

    const v3, 0x7f0902b7

    const v4, 0x7f0902bb

    if-eqz v2, :cond_1

    .line 25
    check-cast p2, Les/am;

    .line 26
    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {p2}, Les/am;->j()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->m(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 27
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v2, 0x7f0902c1

    .line 28
    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v2, 0x7f0902b6

    .line 29
    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v2, 0x7f0902bd

    .line 30
    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v2, 0x7f0902bf

    .line 31
    invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    invoke-virtual {v2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 32
    new-instance p1, Lcom/estrongs/android/pop/app/imageviewer/f$b;

    invoke-direct {p1, p2, p3, p0, v1}, Lcom/estrongs/android/pop/app/imageviewer/f$b;-><init>(Les/am;Landroid/os/Handler;Landroid/app/Activity;Landroid/view/View;)V

    .line 33
    invoke-virtual {p1}, Ljava/lang/Thread;->start()V

    goto :goto_1

    .line 34
    :cond_1
    invoke-interface {p2}, Les/cm;->i()Ljava/lang/String;

    move-result-object p1

    .line 35
    invoke-static {p2}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Les/cm;)J

    move-result-wide v5

    const-wide/16 v7, 0x0

    cmp-long v2, v5, v7

    if-gez v2, :cond_2

    const-string v2, ""

    goto :goto_0

    .line 36
    :cond_2
    invoke-static {p0, v5, v6}, Landroid/text/format/Formatter;->formatFileSize(Landroid/content/Context;J)Ljava/lang/String;

    move-result-object v2

    .line 37
    :goto_0
    invoke-virtual {v1, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    invoke-virtual {v4, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 38
    invoke-virtual {v1, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    invoke-virtual {p1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 39
    invoke-static {v1, p2, p0}, Lcom/estrongs/android/pop/app/imageviewer/f;->b(Landroid/view/View;Les/cm;Landroid/app/Activity;)V

    :goto_1
    const p0, 0x7f11029e

    .line 40
    new-instance p1, Lcom/estrongs/android/pop/app/imageviewer/f$c;

    invoke-direct {p1}, Lcom/estrongs/android/pop/app/imageviewer/f$c;-><init>()V

    invoke-virtual {v0, p0, p1}, Lcom/estrongs/android/ui/dialog/q$n;->f(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 41
    new-instance p0, Lcom/estrongs/android/pop/app/imageviewer/f$d;

    invoke-direct {p0, v0, v1}, Lcom/estrongs/android/pop/app/imageviewer/f$d;-><init>(Lcom/estrongs/android/ui/dialog/q$n;Landroid/view/View;)V

    invoke-virtual {p3, p0}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    return-void
.end method

.method static a(Landroid/app/Activity;Ljava/lang/Runnable;Les/cm;)V
    .locals 1

    const/4 v0, 0x1

    .line 45
    invoke-static {p0, p1, v0, p2}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/app/Activity;Ljava/lang/Runnable;ZLes/cm;)V

    return-void
.end method

.method static a(Landroid/app/Activity;Ljava/lang/Runnable;ZLes/cm;)V
    .locals 3

    if-nez p3, :cond_0

    return-void

    .line 46
    :cond_0
    invoke-static {p0}, Landroidx/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object p2

    const/4 v0, 0x1

    const-string v1, "pref_gallery_confirm_delete_key"

    .line 47
    invoke-interface {p2, v1, v0}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result p2

    if-nez p2, :cond_1

    if-eqz p1, :cond_6

    .line 48
    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    goto :goto_3

    .line 49
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p2

    invoke-virtual {p2}, Lcom/estrongs/android/pop/l;->K0()Z

    move-result p2

    .line 50
    invoke-interface {p3}, Les/cm;->i()Ljava/lang/String;

    move-result-object p3

    const/4 v1, 0x0

    if-eqz p2, :cond_3

    .line 51
    invoke-static {p3}, Lcom/estrongs/android/pop/utils/s;->b(Ljava/lang/String;)I

    move-result p2

    sget v2, Lcom/estrongs/android/pop/utils/s;->c:I

    if-ne p2, v2, :cond_2

    const/4 p2, 0x1

    goto :goto_0

    :cond_2
    const/4 p2, 0x0

    :cond_3
    :goto_0
    if-eqz p2, :cond_4

    const v2, 0x7f110060

    goto :goto_1

    :cond_4
    const v2, 0x7f11003f

    .line 52
    :goto_1
    invoke-virtual {p0, v2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    if-nez p2, :cond_5

    const p2, 0x7f1102c9

    .line 53
    invoke-virtual {p0, p2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p2

    new-array p3, v0, [Ljava/lang/Object;

    const-string v0, ""

    aput-object v0, p3, v1

    invoke-static {p2, p3}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    goto :goto_2

    :cond_5
    const p2, 0x7f110938

    .line 54
    invoke-virtual {p0, p2}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p2

    new-array v0, v0, [Ljava/lang/Object;

    invoke-static {p3}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    aput-object p3, v0, v1

    invoke-static {p2, v0}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    .line 55
    :goto_2
    invoke-static {p0, v2, p2, p1}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V

    :cond_6
    :goto_3
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Runnable;)V
    .locals 1

    .line 56
    new-instance v0, Lcom/estrongs/android/pop/app/imageviewer/f$a;

    invoke-direct {v0, p3}, Lcom/estrongs/android/pop/app/imageviewer/f$a;-><init>(Ljava/lang/Runnable;)V

    .line 57
    :try_start_0
    new-instance p3, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {p3, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    invoke-virtual {p3, p1}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 58
    invoke-virtual {p3, p2}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;)Lcom/estrongs/android/ui/dialog/q$n;

    const p0, 0x7f11029e

    .line 59
    invoke-virtual {p3, p0, v0}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const p0, 0x7f110299

    .line 60
    invoke-virtual {p3, p0, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {p3}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 61
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return-void
.end method

.method private static a(Landroid/view/View;)V
    .locals 1

    const v0, 0x7f0902c0

    .line 10
    invoke-static {p0, v0}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;I)V

    const v0, 0x7f0902bc

    .line 11
    invoke-static {p0, v0}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;I)V

    const v0, 0x7f0902be

    .line 12
    invoke-static {p0, v0}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;I)V

    return-void
.end method

.method private static a(Landroid/view/View;I)V
    .locals 0

    .line 9
    invoke-virtual {p0, p1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    const/16 p1, 0x8

    invoke-virtual {p0, p1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method static synthetic a(Landroid/view/View;Les/cm;Landroid/app/Activity;)V
    .locals 0

    .line 1
    invoke-static {p0, p1, p2}, Lcom/estrongs/android/pop/app/imageviewer/f;->b(Landroid/view/View;Les/cm;Landroid/app/Activity;)V

    return-void
.end method

.method private static a(Landroid/view/View;Ljava/lang/String;I)V
    .locals 0

    .line 8
    invoke-virtual {p0, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/widget/TextView;

    invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private static a(Les/cm;Landroid/view/View;Landroid/app/Activity;)V
    .locals 0

    .line 13
    sget-object p0, Lcom/estrongs/android/pop/app/imageviewer/f;->a:Ljava/lang/String;

    const p2, 0x7f0902bd

    .line 14
    invoke-static {p1, p0, p2}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;Ljava/lang/String;I)V

    .line 15
    sget-object p0, Lcom/estrongs/android/pop/app/imageviewer/f;->a:Ljava/lang/String;

    const p2, 0x7f0902bf

    .line 16
    invoke-static {p1, p0, p2}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;Ljava/lang/String;I)V

    return-void
.end method

.method public static a(Landroid/net/Uri;)Z
    .locals 5

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return v0

    .line 3
    :cond_0
    invoke-virtual {p0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    .line 4
    invoke-virtual {p0}, Landroid/net/Uri;->getAuthority()Ljava/lang/String;

    move-result-object v2

    const-string v3, "content"

    .line 5
    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const/4 v4, 0x1

    if-eqz v3, :cond_1

    const-string v3, "media"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    return v4

    :cond_1
    const-string v2, "file"

    .line 6
    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 7
    invoke-virtual {p0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_2

    return v4

    :cond_2
    return v0
.end method

.method public static b(Landroid/app/Activity;Landroid/net/Uri;Les/cm;)V
    .locals 3

    if-nez p2, :cond_0

    return-void

    .line 18
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 19
    invoke-interface {p2}, Les/cm;->getMimeType()Ljava/lang/String;

    move-result-object v1

    .line 20
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 21
    invoke-virtual {p1}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v1

    const-string v2, "file"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 22
    new-instance v1, Ljava/io/File;

    invoke-virtual {p1}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p0, v1}, Lcom/estrongs/android/util/l;->a(Landroid/content/Context;Ljava/io/File;)Landroid/net/Uri;

    move-result-object p1

    const/4 v1, 0x1

    .line 23
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    :cond_1
    const-string v1, "android.intent.extra.STREAM"

    .line 24
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 25
    invoke-static {p2}, Lcom/estrongs/android/pop/app/imageviewer/ImageManager;->a(Les/cm;)Z

    const p1, 0x7f110072

    .line 26
    :try_start_0
    invoke-virtual {p0, p1}, Landroid/app/Activity;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    .line 27
    invoke-static {v0, p1}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const p1, 0x7f1106b7

    const/4 p2, 0x0

    .line 28
    invoke-static {p0, p1, p2}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    :goto_0
    return-void
.end method

.method private static b(Landroid/view/View;Les/cm;Landroid/app/Activity;)V
    .locals 6

    .line 1
    invoke-static {p1}, Lcom/estrongs/android/pop/app/imageviewer/ImageManager;->a(Les/cm;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {p1}, Les/cm;->getWidth()I

    move-result v0

    .line 3
    invoke-interface {p1}, Les/cm;->getHeight()I

    move-result v2

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    const/4 v2, 0x0

    .line 4
    :goto_0
    sget-object v3, Lcom/estrongs/android/pop/app/imageviewer/f;->a:Ljava/lang/String;

    if-lez v0, :cond_1

    if-lez v2, :cond_1

    const v3, 0x7f1102db

    .line 5
    invoke-virtual {p2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    .line 6
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v4, v1

    const/4 v0, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v4, v0

    .line 7
    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    :cond_1
    const v0, 0x7f0902c1

    .line 8
    invoke-static {p0, v3, v0}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;Ljava/lang/String;I)V

    .line 9
    sget-object v0, Lcom/estrongs/android/pop/app/imageviewer/f;->a:Ljava/lang/String;

    .line 10
    invoke-interface {p1}, Les/cm;->b()J

    move-result-wide v1

    const-wide/16 v3, 0x0

    cmp-long v5, v1, v3

    if-eqz v5, :cond_2

    .line 11
    new-instance v0, Ljava/util/Date;

    invoke-interface {p1}, Les/cm;->b()J

    move-result-wide v1

    invoke-direct {v0, v1, v2}, Ljava/util/Date;-><init>(J)V

    .line 12
    new-instance v1, Ljava/text/SimpleDateFormat;

    invoke-direct {v1}, Ljava/text/SimpleDateFormat;-><init>()V

    .line 13
    invoke-virtual {v1, v0}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    :cond_2
    const v1, 0x7f0902b6

    .line 14
    invoke-static {p0, v0, v1}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;Ljava/lang/String;I)V

    .line 15
    invoke-interface {p1}, Les/cm;->getMimeType()Ljava/lang/String;

    move-result-object v0

    const-string v1, "image/jpeg"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 16
    invoke-static {p1, p0, p2}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Les/cm;Landroid/view/View;Landroid/app/Activity;)V

    goto :goto_1

    .line 17
    :cond_3
    invoke-static {p0}, Lcom/estrongs/android/pop/app/imageviewer/f;->a(Landroid/view/View;)V

    :goto_1
    return-void
.end method
